package io.renren.controller;

import io.renren.annotation.Login;
import io.renren.annotation.LoginUser;
import io.renren.common.utils.R;
import io.renren.entity.StudentEntity;
import io.renren.service.SignUpPaymentLogService;
import io.renren.util.ApiBaseAction;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 报名模块
 *
 * @author huolikang
 * @date 2018-12-5
 */
@RestController
@RequestMapping("api/signUp")
public class ApiSignUpPaymentLogController extends ApiBaseAction {
    @Autowired
    private SignUpPaymentLogService signUpPaymentLogService;

    /***
     * 获取报名科目列表
     * @param student
     * @return R
     */
    @Login
    @PostMapping("getSignUpSubjectList")
    @ApiOperation("获取报名科目列表")
    public R getSignUpSubjectList(@LoginUser StudentEntity student) {
        return signUpPaymentLogService.getSignUpSubjectList(student);
    }
}
